home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / ghost / gs403src_amiga.lha / gs4.03 / gcc-head.mak.in < prev    next >
Text File  |  1997-04-12  |  10KB  |  291 lines

  1. #    Copyright (C) 1989, 1995, 1996 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. #### Start of system configuration section. ####
  16.  
  17. VPATH = @srcdir@
  18. srcdir = @srcdir@
  19.  
  20. # Common prefix for machine-independent installed files.
  21. # prefix = ade: because GS is a Libnix client! && is put on Fish-site
  22. # prefix = /ade when GS is compiled using ixemul.library!
  23. # prefix = ghostscript: because GS uses Libnix and is put on Aminet
  24. #          most end users don't have 'ade:'
  25. # prefix = Ghostscript:
  26. prefix = @prefix@
  27. # Common prefix for machine-dependent installed files.
  28. exec_prefix = $(prefix)
  29.  
  30. # Directory to install executables in.
  31. bindir = $(exec_prefix)
  32. # Directory to install libraries in.
  33. libdir = $(exec_prefix)/lib
  34. # Directory to install the Info files in.
  35. infodir = $(prefix)/info
  36. # Directory to install script files in.
  37. scriptdir = $(bindir)batch
  38. # Directory to install the man page in.
  39. mandir = $(prefix)man
  40. man1ext = 1
  41. man1dir = $(mandir)/man$(man1ext)
  42. # Number to put on the man page filename.
  43. manext = 1
  44. datadir = $(prefix)data
  45. gsdir = $(datadir)
  46. gsdatadir = $(gsdir)
  47.  
  48. docdir=$(prefix)doc
  49. exdir=$(prefix)examples
  50. GS_DOCDIR=$(docdir)
  51.  
  52. # Program to install executables.
  53. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  54. # Program to install data like man pages.
  55. INSTALL_DATA = @INSTALL_DATA@
  56. # Generic install program.
  57. INSTALL = @INSTALL@
  58.  
  59. CC = @CC@
  60. # Use this verion if you compile for Libnix, else the current one
  61. #DEFS = @DEFS@ $(FPU_FLAG) $(CPU_FLAG)
  62. DEFS = @DEFS@ $(FPU_FLAG) $(CPU_FLAG) #-DIXEMUL
  63.  
  64. # Do a 'setenv="-noixemul"' before running 'configure' !
  65. # if one wants the libnix version  of GS
  66. # configure will add it to the other LDFLAGS
  67. LIBS = @LIBS@
  68.  
  69. # Note: this makefile assumes you are using gcc in ANSI mode.
  70.  
  71.  
  72. # ------------------------------- Options ------------------------------- #
  73.  
  74. ####### The following are the only parts of the file you should need to edit.
  75.  
  76. # ------ Generic options ------ #
  77.  
  78. # Define the installation commands and target directories for
  79. # executables and files.  The commands are only relevant to `make install';
  80. # the directories also define the default search path for the
  81. # initialization files (gs_*.ps) and the fonts.
  82.  
  83. # Define the default directory/ies for the runtime
  84. # initialization and font files.  Separate multiple directories with a :.
  85. # Note that if you want the interpreter to search the current directory, .,
  86. # you must include it explicitly.
  87.  
  88. GS_LIB_DEFAULT=$(gsdatadir),$(prefix)fonts
  89.  
  90. # Define the name of the interpreter initialization file.
  91. # (There is no reason to change this.)
  92.  
  93. GS_INIT=gs_init.ps
  94.  
  95. # Choose generic configuration options.
  96.  
  97. # -DDEBUG
  98. #    includes debugging features (-Z switch) in the code.
  99. #      Code runs substantially slower even if no debugging switches
  100. #      are set.
  101. # -DNOPRIVATE
  102. #    makes private (static) procedures and variables public,
  103. #      so they are visible to the debugger and profiler.
  104. #      No execution time or space penalty.
  105.  
  106. #GENOPT=-DDEBUG
  107. GENOPT=
  108.  
  109. # Define the name of the executable file.
  110.  
  111. GS=gs
  112.  
  113. # Define the directory where the IJG JPEG library sources are stored,
  114. # and the major version of the library that is stored there.
  115. # You may haveneed change this if the IJG library version changes.
  116. # See jpeg.mak for more information.
  117.  
  118. JSRCDIR=$(srcdir)/jpeg-6a
  119. JVERSION=6
  120.  
  121. # Define the directory where the PNG library sources are stored,
  122. # and the version of the library that is stored there.
  123. # You may need to change this if the libpng version changes.
  124. # See libpng.mak for more information.
  125.  
  126. PSRCDIR=$(srcdir)/libpng
  127. PVERSION=89
  128.  
  129. # Choose whether to use a shared version of the PNG library (-lpng).
  130. # See gs.mak and make.txt for more information.
  131.  
  132. SHARE_LIBPNG=0
  133.  
  134. # Define the directory where the zlib sources are stored.
  135. # See zlib.mak for more information.
  136.  
  137. ZSRCDIR=$(srcdir)/zlib
  138.  
  139. # Choose whether to use a shared version of the zlib library (-lgz).
  140. # See gs.mak and make.txt for more information.
  141.  
  142. SHARE_ZLIB=0
  143.  
  144. # Define the configuration ID.  Read gs.mak carefully before changing this.
  145.  
  146. CONFIG=
  147.  
  148. # ------ Platform-specific options ------ #
  149.  
  150. # Define the name of the C compiler.
  151. # JOOP: done in configure script
  152. #CC=gcc
  153.  
  154. # Define the name of the linker for the final link step.
  155. # Normally this is the same as the C compiler.
  156.  
  157. CCLD=$(CC)
  158.  
  159. # Define the default gcc flags.
  160. # To work around the gcc 2.7.x optimizer bug,
  161. # add -Dconst= and remove -Wcast-qual and -Wwrite-strings.
  162.  
  163. #GCFLAGS=-Wall -Wcast-qual -Wpointer-arith -Wstrict-prototypes -Wwrite-strings
  164. GCFLAGS=-Dconst= -Wall -Wpointer-arith -Wstrict-prototypes -fno-builtin
  165.  
  166. # Define the other compilation flags.  Add at most one of the following:
  167. #    -DBSD4_2 for 4.2bsd systems.
  168. #    -DSYSV for System V or DG/UX.
  169. #     -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  170. #       or any System III Unix, or System V release 3-or-older Unix.
  171. #    -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
  172. #    -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
  173. # XCFLAGS can be set from the command line.
  174. # We don't include -ansi, because this gets in the way of the platform-
  175. #   specific stuff that <math.h> typically needs; nevertheless, we expect
  176. #   gcc to accept ANSI-style function prototypes and function definitions.
  177.  
  178. #CFLAGS=-g -O $(GCFLAGS) $(XCFLAGS)
  179.  
  180. # - Make sure that the version string of gdevamiga.c is correctly included
  181. # for that to happen you need to modify the specs file or hand define
  182. # cpu options (-m68030 -DMC68030 -m68881 -DMC68881 etc)
  183. CFLAGS=@CFLAGS@ $(GCFLAGS) $(XCFLAGS)
  184.  
  185. # Define platform flags for ld.
  186. # SunOS 4.n may need -Bstatic.
  187. # XLDFLAGS can be set from the command line.
  188.  
  189. #LDFLAGS=$(XLDFLAGS) -pg
  190. LDFLAGS=@LDFLAGS@ $(XLDFLAGS)
  191.  
  192. # Define any extra libraries to link into the executable.
  193. # ISC Unix 2.2 wants -linet.
  194. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  195. # SVR4 may need -lnsl.
  196. # (Libraries required by individual drivers are handled automatically.)
  197.  
  198. EXTRALIBS=
  199.  
  200. # Define the include switch(es) for the X11 header files.
  201. # This can be null if handled in some other way (e.g., the files are
  202. # in /usr/include, or the directory is supplied by an environment variable);
  203. # in particular, SCO Xenix, Unix, and ODT just want
  204. #XINCLUDE=
  205. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  206. # not in $(XINCLUDE).
  207.  
  208. XINCLUDE=-I/usr/X11R6.1/include
  209.  
  210. # Define the directory/ies and library names for the X11 library files.
  211. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
  212. # (dynamic libraries on SVR4) and should not include -L.
  213. # Both can be null if these files are in the default linker search path;
  214. # in particular, SCO Xenix, Unix, and ODT just want
  215. #XLIBDIRS=
  216. # X11R6 (on any platform) may need
  217. #XLIBS=Xt SM ICE Xext X11
  218.  
  219. #XLIBDIRS=-L/usr/local/X/lib
  220. XLIBDIRS=-L/usr/X11R6.1/lib
  221. XLIBDIR=
  222. XLIBS=Xt Xext X11
  223.  
  224. # Define whether this platform has floating point hardware:
  225. #    FPU_TYPE=2 means floating point is faster than fixed point.
  226. # (This is the case on some RISCs with multiple instruction dispatch.)
  227. #    FPU_TYPE=1 means floating point is at worst only slightly slower
  228. # than fixed point.
  229. #    FPU_TYPE=0 means that floating point may be considerably slower.
  230. #    FPU_TYPE=-1 means that floating point is always much slower than
  231. # fixed point.
  232.  
  233. # JOOP: due to a bug (?) in ADE snapshot 2-17-97, FPU_TYPE needs atleast
  234. #       0 or greater.
  235. FPU_TYPE=0
  236.  
  237. # ------ Devices and features ------ #
  238.  
  239. # Choose the language feature(s) to include.  See gs.mak for details.
  240.  
  241. FEATURE_DEVS=level2.dev writeppm.dev pdf.dev pipe.dev
  242.  
  243. # Choose whether to compile the .ps initialization files into the executable.
  244. # See gs.mak for details.
  245.  
  246. COMPILE_INITS=0
  247.  
  248. # Choose the device(s) to include.  See devs.mak for details.
  249. DEVICE_DEVS=amiga.dev amiga_custom.dev amiga_printer.dev amiga_ilbm.dev
  250. #DEVICE_DEVS1=x11.dev x11alpha.dev x11cmyk.dev x11mono.dev
  251. #DEVICE_DEVS2=
  252. DEVICE_DEVS3=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev ljet4.dev
  253. DEVICE_DEVS4=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev pj.dev pjxl.dev pjxl300.dev
  254. DEVICE_DEVS6=bj10e.dev bj200.dev bjc600.dev bjc800.dev
  255. DEVICE_DEVS7=faxg3.dev faxg32d.dev faxg4.dev
  256. DEVICE_DEVS8=pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev
  257. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev
  258. DEVICE_DEVS10=tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tifflzw.dev tiffpack.dev
  259. DEVICE_DEVS11=tiff12nc.dev tiff24nc.dev
  260. DEVICE_DEVS12=psmono.dev bit.dev bitrgb.dev bitcmyk.dev
  261. DEVICE_DEVS13=pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev
  262. DEVICE_DEVS14=bmpmono.dev bmp16.dev bmp256.dev bmp16m.dev
  263. DEVICE_DEVS15=pdfwrite.dev
  264.  
  265. # ---------------------------- End of options --------------------------- #
  266.  
  267. # Define the name of the partial makefile that specifies options --
  268. # used in dependencies.
  269.  
  270. MAKEFILE=gcc-head.mak
  271.  
  272. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  273.  
  274. AK=
  275.  
  276. # Define the compilation rules and flags.
  277.  
  278. CCC=$(CC) $(CCFLAGS) -c
  279. CCAUX=$(CC)
  280. #We can't use -fomit-frame-pointer with -pg....
  281. #CCLEAF=$(CCC)
  282. CCLEAF=$(CCC) -fomit-frame-pointer
  283.  
  284. # --------------------------- Generic makefile ---------------------------- #
  285.  
  286. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  287. # is generic.  tar_cat concatenates all these together.
  288.